<?php

namespace App\Http\Controllers\Api\Web;

use App\Http\Controllers\Api\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Models\Topic;
use Illuminate\Support\Facades\Auth;

class TopicController extends Controller
{

  //列表
  public function index(Request $request)
  {
    $papers = Topic::getList($request);
    return $this->success($papers);
  }

  // 详情
  public function detail($id)
  {
    $paperInfo = Topic::getDetail($id);
    return $this->success($paperInfo);
  }
}
